/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.openbravo.bean.erp;


import cn.ekuma.data.dao.bean.I_AutoGeneratorStringKey;
import cn.ekuma.data.dao.bean.I_ModifiedLogBean;
import com.openbravo.bean.infobean.UserInfo;
import java.util.Date;

/**
 *
 * @author Administrator
 */
public class OrderState implements I_ModifiedLogBean<String>,I_AutoGeneratorStringKey{
      static final long serialVersionUID=-2807546442053645676L;

      public static String ORDERSTATE_Start="orderState.start";
      public static String ORDERSTATE_End="orderState.end";
      public static String ORDERSTATE_Cancel="orderState.cancel";
      
      private String id;
      private Date fireDate;
      private String orderID;
      private String state;
      private UserInfo m_User;
      private String memo;
      private Date lastModified;
      private String refId;

    public OrderState() {
    }

    public OrderState( UserInfo m_User,String state) {
        this(null,m_User,state);
    }

    public OrderState( UserInfo m_User,String state,String memo) {
        this(null,m_User,state,memo);
    }

    public OrderState(String orderID, UserInfo m_User,String state) {
        this(orderID,m_User,state,null);
    }

      public OrderState(String orderID, UserInfo m_User,String state,String memo) {
        this.orderID = orderID;
        this.m_User = m_User;
        this.state=state;
        fireDate=new Date();
        this.memo=memo;
    }

    public Date getFireDate() {
        return fireDate;
    }

    public String getMemo() {
        return memo;
    }

    public String getOrderID() {
        return orderID;
    }

    public String getState() {
        return state;
    }

    public String getUserID() {
        return m_User.getId();
    }

    public String getUserName(){
        return m_User.getName();
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public void setOrderID(String orderID) {
        this.orderID = orderID;
    }

    public String getId() {
        return id;
    }

    public UserInfo getM_User() {
        return m_User;
    }

    public void setM_User(UserInfo m_User) {
        this.m_User = m_User;
    }

    public void setFireDate(Date fireDate) {
        this.fireDate = fireDate;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setState(String state) {
        this.state = state;
    }
   

    public String getKey() {
        return id;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

    public void setKey(String key) {
        this.id=key;
    }

	public String getRefId() {
		return refId;
	}

	public void setRefId(String refId) {
		this.refId = refId;
	}
    
    
}
